package com.auxgroup.smarthome.service;

import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by kevinchen on 2017/10/13.
 */
@FeignClient(name="APP-CONSUMER",fallback = AppControlFuncServiceFallback.class)
public interface AppControlFuncService {

    @RequestMapping(value = "/app/private/peak_valley", method = RequestMethod.DELETE)
    ApiResponse closePeakValleyCurve(@RequestParam("did") String did);

    @RequestMapping(value = "/app/private/smart_electricity", method = RequestMethod.DELETE)
    ApiResponse closeSmartElectricity(@RequestParam("pk")String pk,@RequestParam("mac")String mac,@RequestParam("did")String did );

    @RequestMapping(value = "/app/private/all/sleep", method = RequestMethod.DELETE)
    ApiResponse closeAllSleepDiy(@RequestParam("pk")String pk,@RequestParam("did")String did);

}
